<?php
extract(array(
	'title' => '',
	'component' => false,
	'product' => false,
	'class' => '',
), EXTR_SKIP);

if ( empty($component) || empty($product) ) return ;

$content = $this->renderPartial('//product/components/'.$component, array(
	'product' => $product
), true);

if ( trim($content) ) :
?>
<section class="product-component <?php echo $class ?>">
	
	<h2 id="product-<?php echo $component ?>" class="component-title"><?php echo $title ?></h2>
	
	<?php echo $content ?>
	
</section>
<?php endif; ?>